package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单子表 订单中所包含的商品
 *
 * @author WeiZiDong
 */
@Table(name = "`oms_order_sub`")
@Data
@ApiModel("订单子表订单中所包含的商品")
public class OmsOrderSub implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "id", example = "String")
    private String id;
    @Column(name = "`order_id`")
    @ApiModelProperty(value = "订单主id", example = "String")
    private String orderId;
    @Column(name = "`sub_order_no`")
    @ApiModelProperty(value = "子订单编号", example = "String")
    private String subOrderNo;
    @Column(name = "`select_storehouse_id`")
    @ApiModelProperty(value = "选品库主表ID", example = "String")
    private String selectStorehouseId;
    @Column(name = "`select_storehouse_sub_id`")
    @ApiModelProperty(value = "选品库子表ID", example = "String")
    private String selectStorehouseSubId;
    @Column(name = "`product_id`")
    @ApiModelProperty(value = "产品id", example = "String")
    private String productId;
    @Column(name = "`product_name`")
    @ApiModelProperty(value = "产品名称", example = "String")
    private String productName;
    @Column(name = "`product_introduce`")
    @ApiModelProperty(value = "产品介绍", example = "String")
    private String productIntroduce;
    @Column(name = "`producing_area`")
    @ApiModelProperty(value = "产地", example = "String")
    private String producingArea;
    @Column(name = "`main_pic`")
    @ApiModelProperty(value = "产品主图片", example = "String")
    private String mainPic;
    @Column(name = "`album_pics`")
    @ApiModelProperty(value = "产品轮播图画册图片，连产品图片限制为5张，以逗号分割", example = "String")
    private String albumPics;
    @Column(name = "`video_url`")
    @ApiModelProperty(value = "商品短视频URL", example = "String")
    private String videoUrl;
    @Column(name = "`flower_unit`")
    @ApiModelProperty(value = "鲜花单位", example = "String")
    private String flowerUnit;
    @Column(name = "`unit_sum1`")
    @ApiModelProperty(value = "每单位数量", example = "1")
    private Integer unitSum1;
    @Column(name = "`detail`")
    @ApiModelProperty(value = "商品详情", example ="String" )
    private String detail;
    @Column(name = "`product_length`")
    @ApiModelProperty(value = "长度", example = "String")
    private String productLength;
    @Column(name = "`product_openness`")
    @ApiModelProperty(value = "开放度", example = "String")
    private String productOpenness;
    @Column(name = "`prouuct_grade`")
    @ApiModelProperty(value = "等级", example = "String")
    private String prouuctGrade;
    @Column(name = "`proudct_weight`")
    @ApiModelProperty(value = "重量", example = "String")
    private String proudctWeight;
    @Column(name = "`product_volume`")
    @ApiModelProperty(value = "体积", example = "String")
    private String productVolume;
    @Column(name = "`first_class_id`")
    @ApiModelProperty(value = "一级分类id", example = "String")
    private String firstClassId;
    @Column(name = "`second_class_id`")
    @ApiModelProperty(value = "二级分类id", example = "String")
    private String secondClassId;
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "用户id", example = "String")
    private String userId;
    @Column(name = "`user_photo`")
    @ApiModelProperty(value = "用户头像", example = "String")
    private String userPhoto;
    @Column(name = "`nick_name`")
    @ApiModelProperty(value = "用户昵称", example = "String")
    private String nickName;
    @Column(name = "`user_phone`")
    @ApiModelProperty(value = "用户手机号", example = "String")
    private String userPhone;
    @Column(name = "`business_id`")
    @ApiModelProperty(value = "商家ID", example = "String")
    private String businessId;
    @Column(name = "`business_name`")
    @ApiModelProperty(value = "商家名称", example = "String")
    private String businessName;
    @Column(name = "`business_logo`")
    @ApiModelProperty(value = "商家logo", example = "String")
    private String businessLogo;
    @Column(name = "`business_tel`")
    @ApiModelProperty(value = "商家电话", example = "String")
    private String businessTel;
    @Column(name = "`user_groups_type`")
    @ApiModelProperty(value = "面向用户群体类型1-供应商；2-花农", example = "1")
    private Integer userGroupsType;
    @Column(name = "`product_type`")
    @ApiModelProperty(value = "产品类型1-普通商品；2-团购商品；3-特价商品；4-委托商品；5-拍卖商品", example = "1")
    private Integer productType;
    @Column(name = "`product_price`")
    @ApiModelProperty(value = "产品单价", example = "1")
    private Integer productPrice;
    @Column(name = "`product_stock`")
    @ApiModelProperty(value = "产品库存", example = "1")
    private Integer productStock;
    @Column(name = "`product_quantity`")
    @ApiModelProperty(value = "购买数量", example = "1")
    private Integer productQuantity;
    @Column(name = "`order_price`")
    @ApiModelProperty(value = "订单金额", example = "1")
    private Integer orderPrice;
    @Column(name = "`pay_amount`")
    @ApiModelProperty(value = "实际支付金额", example = "1")
    private Integer payAmount;
    @Column(name = "`order_status`")
    @ApiModelProperty(value = "订单状态0-待付款；1-已付款；2-待送中央仓库；3-已送中央仓库；4-已发货（待收货）；5-已收货；6-已完成；7-取消；8-退款/售后", example = "1")
    private Integer orderStatus;
    @Column(name = "`ogistics_status`")
    @ApiModelProperty(value = "物流状态0-物流待接单；1-物流待取件；2-物流已取件；3-物流已装成", example = "1")
    private Integer ogisticsStatus;
    @Column(name = "`refund_status`")
    @ApiModelProperty(value = "退款状态0-未退款；1-退款中；2-已退款；3-已取消", example = "1")
    private Integer refundStatus;
    @Column(name = "`end_time`")
    @ApiModelProperty(value = "结束时间", example = "2019-05-05 17:55:31")
    private Date endTime;
    @Column(name = "`purchase_price`")
    @ApiModelProperty(value = "团购价", example = "1")
    private Integer purchasePrice;
    @Column(name = "`purchase_min_num`")
    @ApiModelProperty(value = "成团最低数量", example = "1")
    private Integer purchaseMinNum;
    @Column(name = "`starting_price`")
    @ApiModelProperty(value = "起拍价", example = "1")
    private Integer startingPrice;
    @Column(name = "`online_range`")
    @ApiModelProperty(value = "加价幅度", example = "1")
    private Integer onlineRange;
    @Column(name = "`inspection_fee`")
    @ApiModelProperty(value = "质检费", example = "1")
    private Integer inspectionFee;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
